package com.ipay.service;

import com.ipay.entity.MerchantInfoEntity;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * 商户资料
 * 
 * @author hacken
 * @email hacken_hu@163.com
 * @date 2017-06-10 15:46:50
 */
public interface MerchantInfoService {

	MerchantInfoEntity queryObject(Long id);

	List<MerchantInfoEntity> queryList(Map<String, Object> map);

	int queryTotal(Map<String, Object> map);

	void save(MerchantInfoEntity merchantInfo);

	void update(MerchantInfoEntity merchantInfo);

	void delete(Long id);

	void deleteBatch(Long[] ids);

	MerchantInfoEntity queryByParams(MerchantInfoEntity entity);
	
	/**
	 * 查询商户下拉
	 * @param map
	 * @return
	 */
	public List<MerchantInfoEntity> querySelectByParam(Map<String, Object> map);
	
	/**
	 * 根据手机号码查询商户信息
	 * @param map
	 * @return
	 */
	MerchantInfoEntity queryInfoByMobile(Map<String, Object> map);

	/**
	 * 生成微信管理员用户
	 * 
	 * @param entity
	 */
	public void initWechatMgr(MerchantInfoEntity entity);
	
	/**
	 * 商户审核
	 * @param entity
	 * @return
	 */
	Map<String, String> merchantVerify(MerchantInfoEntity entity);
	
	void kafkaProducer();
	
	void produce(String data);
	
	File[] creatFile(MerchantInfoEntity merchantInfo);
}
